
#include "MMemory.h"
BEGIN_MARIONETTE
MMemory::MMemory(void)
{
	m_isRealData = false;
}

MMemory::~MMemory(void)
{
}



BYTE MMemory::operator[]( DWORD address )
{
		return Data(address);
}

BYTE MMemory::Data( DWORD address )
{
	return *(BYTE*)address;
}
BYTE* MMemory::DataPtr( DWORD address )
{
	return 	(BYTE*)address;;
}


int MMemory::CopyTo( DWORD srcAddress,BYTE* pDest,int size )
{
	return memcpy_s(
		pDest,size,DataPtr(srcAddress),size);
}

END_MARIONETTE